<template>
  <div class="private_content">
    <div class="private_item" v-for="(item, index) in musicList" :key="index">
      <div class="private_item_mv">
        <img :src="item.picUrl" alt="" />
        <div class="loco">
          <i class="iconfont icon-shipin"></i>
        </div>
      </div>
      <div class="private_item_name">{{ item.name }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'PrivateContent',
  props: {
    musicList: {
      type: Array,
      default: function () {
        return []
      }
    }
  },
  data() {
    return {}
  }
}
</script>

<style lang="less" scoped>
.private_content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  .private_item {
    width: 30%;
    cursor: pointer;
    .private_item_mv {
      position: relative;
      .loco {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
        position: absolute;
        top: 6px;
        left: 6px;
        display: flex;
        justify-content: center;
        align-items: center;
        i {
          color: #fff;
        }
      }
      img {
        width: 100%;
      }
    }
    .private_item_name {
      font-size: 14px;
      padding-top: 6px;
    }
  }
}
</style>
